package com.yuan.springcloud.user.bean.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;
import com.yuan.springcloud.common.db.bean.Entity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author YouYuan
 * @date 2021/1/10 1:40
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "角色实体类")
@Data
@TableName("role")
public class RolePO extends Entity {

    @ApiModelProperty(value = "角色ID", example = "1")
    @TableId(value = "id", type = IdType.AUTO)
    private Long role_id;

    @ApiModelProperty(value = "角色名", example = "管理员")
    private String roleName;

    @ApiModelProperty(value = "启用状态(0:启用,1:禁用)")
    private Integer isEnable;

    @ApiModelProperty(value = "删除状态(0:未删除,1:已删除)")
    private Integer isDelete;

    @ApiModelProperty(value = "版本号")
    @Version
    private Integer version;

}
